@use 'sass:color';

.status-tag {
  border-radius: 2px;
  text-align: center;
  display: inline-block;
  // stylelint-disable-next-line property-disallowed-list
  text-transform: uppercase;
  padding: 0 0.5em;
  border: 1px solid theme('colors.grey.200');
  color: theme('colors.grey.400');
  -webkit-font-smoothing: auto;
  line-height: 19px;
  font-size: 0.8em;
  margin: 0 0.5em 0.5em;
  background: $color-white url('#{$images-root}bg-dark-diag.svg');

  &.primary {
    color: $color-grey-2;
    border: 1px solid $color-grey-2;
    background: $color-white;
  }

  &.disabled {
    pointer-events: none;
  }

  &--label {
    color: $color-grey-2;
    background: $color-grey-4;
    border: $color-grey-4;
    font-weight: 500;
  }
}

.listing .index .status-tag--label {
  border: 1px solid;
}

button.status-tag:hover,
a.status-tag:hover,
a.status-tag.primary:hover {
  border-color: $color-teal;
  color: $color-teal;
}

button.status-tag:hover {
  border-color: $color-teal-dark;
  background-color: $color-teal-darker;
  color: $color-white;
}

// Special case for text-transform: uppercase.
.page-status-tag {
  // stylelint-disable-next-line property-disallowed-list
  text-transform: uppercase;
}
